package cn.kone.controller;

import cn.kone.pojo.DriverPoint;
import cn.kone.result.JSONResult;
import cn.kone.service.IDriverPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app")
public class DriverPointController {

    @Autowired
    private IDriverPointService driverPointService;

    @PostMapping("/save")
    public JSONResult save(@RequestBody DriverPoint driverPoint) {

        driverPointService.save(driverPoint);
        return JSONResult.success();
    }




}
